package org.jtb.quickr;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

class AuthGetFrobRequest extends SignedMethodRequest {
    protected AuthGetFrobRequest(String baseUrl, String apiKey, String secret) throws QuickrException {
        super(baseUrl, apiKey, secret, null, "flickr.auth.getFrob");

    }
        
    public FrobResponse execute() throws QuickrException {
        FlickrUrl furl = new SignedMethodUrl(getBaseUrl(), getApiKey(), getSecret(), getMethod());

        Get get = new Get(furl.getUrl());        
        InputStream is = get.execute();
        FrobResponse gfr = new FrobResponse(is);
        
        return gfr;
    }
}
